<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    @ok=""
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="close"
    cancelText="关闭">
    <a-card :bordered="false">
      <!-- table区域-begin -->
      <div>
        <a-table
          ref="table"
          size="middle"
          :scroll="{x:true}"
          bordered
          rowKey="id"
          :columns="columns"
          :dataSource="dataSource"
          :pagination="ipagination"
          :loading="loading"
          :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
          class="j-table-force-nowrap"
          @change="handleTableChange">
        </a-table>
      </div>
    </a-card>
  </j-modal>
</template>

<script>

  import '@/assets/less/TableExpand.less'
  import { mixinDevice } from '@/utils/mixin'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'

  export default {
    name: 'PaymentInfoItemList',
    mixins:[JeecgListMixin, mixinDevice],
    components: {
    },
    data () {
      return {
        description: '灵犀打款子表管理页面',
        // 表头
        columns: [
          {
            title: '#',
            dataIndex: '',
            key:'rowIndex',
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
          },
          {
            title:'时间',
            align:"center",
            dataIndex: 'createTime'
          },
          {
            title:'交易编号',
            align:"center",
            dataIndex: 'transactionNumber'
          },
          {
            title:'个人下发费用(元)',
            align:"center",
            dataIndex: 'feeAmount'
          },
          {
            title:'下发状态',
            align:"center",
            dataIndex: 'status_dictText'
          },
          {
            title:'下发状态说明',
            align:"center",
            dataIndex: 'statusDec'
          }
        ],
        url: {
          list: "/payment/paymentInfoItem/list",
        },
        dictOptions:{},
        superFieldList:[],

        title:'打款记录',
        width:1200,
        visible: false,
        disableSubmit: true,
        disableMixinCreated: true,
      }
    },
    created() {
    this.getSuperFieldList();
    },
    computed: {
      importExcelUrl: function(){
        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
      },
    },
    methods: {
      initDictConfig(){
      },
      initData(withdrawalId){
        this.visible=true;
        this.queryParam.withdrawalId=withdrawalId;
        this.loadData(1);
      },
      close () {
        this.$emit('close');
        this.visible = false;
      },
    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less';
</style>
